cmake_minimum_required(VERSION 3.31)
project(test01)

set(CMAKE_CXX_STANDARD 20)

add_executable(test01 main.cpp
        entity/undergraduate.cpp
        entity/undergraduate.h
        entity/Graduate.cpp
        entity/Graduate.h
        entity/Student.h
        entity/Student.cpp
        ManageStu.h
        ManageStu.cpp
        util/MyArray.h
        util/FileUtils.cpp
        util/FileUtils.h
        exception/CustomException.cpp
        exception/CustomException.h
        util/TimeUtils.h
        concurrent/ThreadPool.cpp
        concurrent/ThreadPool.h
        context/UserContext.h
        context/UserContext.cpp
)
if(MSVC)
    add_compile_options(/utf-8)
endif()
if(MINGW)
    add_compile_options(/utf-8)
endif()